<?php  
class ControllerModuleBankaccount extends Controller {
	protected function index() {
		$this->language->load('module/bankaccount');
		
    	$this->data['heading_title'] = $this->language->get('heading_title');
    	
		$this->data['text_bankinfo'] = $this->language->get('text_bankinfo');
    	$this->data['text_banktext'] = $this->language->get('text_banktext');
		
		$this->load->model('catalog/bankaccount');
		$this->load->model('tool/seo_url');
		
		$this->data['bankaccounts'] = array();

		foreach ($this->model_catalog_bankaccount->getBankaccount() as $result) {
      		$this->data['bankaccounts'][] = array(
        		'name' => $result['name'],
				'number' => $result['number'],
				'width' => $result['width'],
				'height' => $result['height'],
				'image' => $result['image']
	    		
      		);
    	}
		
		$this->id = 'bankaccount';

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/bankaccount.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/bankaccount.tpl';
		} else {
			$this->template = 'default/template/module/bankaccount.tpl';
		}
		
		$this->render();
	}
}
?>